############################################################################
#
# Makefile for ppm.a  
#
##############################################################################
include $(CRM_SRC)/env/common.mk

INCLUDE = -I.\
-I$(CRM_INCLUDE)/ppm_inter \
-I$(CRM_INCLUDE)/ppm_table \
-I$(CRM_INCLUDE)/include \
-I$(CRM_INCLUDE)/customer \
-I$(CRM_INCLUDE)/custtable \
-I$(CRM_INCLUDE)/popedom_entity \
-I$(CRM_INCLUDE)/popedom_table \
-I$(CRM_INCLUDE)/log_man_table \
-I$(CRM_INCLUDE)/log_manager \
-I$(CRM_INCLUDE)/sys_man_table \
-I$(CRM_INCLUDE)/sys_manager \
-I$(CRM_INCLUDE)/bom \
-I$(CRM_INCLUDE)/bomtable \
-I$(CRM_INCLUDE)/easy_xml \
-I$(CRM_INCLUDE)/flow \
-I$(CRM_INCLUDE)/flowtable \
-I$(CRM_INCLUDE)/timelimit_table \
-I$(CRM_INCLUDE)/timelimit \
-I$(CRM_INCLUDE)/assign_table\
-I$(CRM_INCLUDE)/assign\
-I$(CRM_INCLUDE)/caller_gen \
-I$(CRM_INCLUDE)/caller_gen_table \
-I$(CRM_INCLUDE)/domain\
-I$(CRM_INCLUDE)/pubfunction \
-I$(CRM_INCLUDE)/database \
-I$(CRM_INCLUDE)/common \
-I$(CRM_INCLUDE)/ossxml\
-I$(CRM_INCLUDE)/ppm_client\
-I$(CRM_INCLUDE)/crm_server\
-I$(TUXDIR)/include\

CFLAGS = $(INCLUDE) $(INCLUDE_COMMON) $(CFLAGS_COMMON)

MYLIBS = o_ppmattrgrouprela.o \
         o_ppmattrins.o \
		 o_ppmattrvalueins.o \
		 o_ppmdisp.o \
		 o_ppmdisprela.o \
		 o_ppmprocord.o \
		 o_ppmprocrecord.o \
		 o_ppmprodappattr.o \
		 o_ppmprodappattrgroup.o \
		 o_ppmprodappattrvalue.o \
		 o_ppmprodapplication.o \
		 o_ppmprodapptask.o \
		 o_ppmprodapptaskattr.o \
		 o_ppmprodapptaskext.o \
		 o_ppmprodcatalog.o \
		 o_ppmprodcatalognode.o \
		 o_ppmprodtempattr.o \
		 o_ppmprodtempattrvalue.o \
		 o_ppmprodtemplate.o \
		 o_ppmprodtempselected.o \
		 o_ppmtempattrselected.o \
		 o_ppmattrspec.o \
		 o_ppmoffercmpstrole.o \
		 o_ppmofferrela.o \
		 o_ppmprodcomprole.o \
		 o_ppmprodoffer.o \
		 o_ppmprodserviceoffer.o \
		 o_ppmproduct.o \
		 o_ppmproductrela.o \
		 op_ppmflowctrl.o \
		 op_i_ppminterface.o \
		 op_i_ppmprodinter.o \
		 op_interfacemanager.o \
		 op_ppmparser.o \
		 op_ppmbase.o \
		 ppmprocordflow_processor.o \
		 transInputCondition.o \
		 ppmtaskflow_processor.o \
		 transInputCondition.o \
		 o_ppmprodtempattrrela.o \
		 o_ppmproductattrselected.o \
		 o_ppmprodplatform.o \
		 o_ppmprodplatformrela.o \
		 o_prodcfgppmattrrela.o \
		 o_syscfgtree.o \
		 o_ppmserviceoffer.o \
		 o_ppmprodoperateflow.o \
		 o_ppmattrrela.o \
		 o_ppmcatalogrela.o \
		 o_ppmcatalogpermission.o \
		 o_ppmstaffpermission.o \
		 o_ppmpricedescitem.o \
		 o_ppmpricedescitemcatalog.o \
		 o_ppmpricedescitemspec.o \
		 o_ppmpricedescparam.o \
		 o_ppmpricedescparamspec.o \
		 o_ppmpricedescsection.o \
		 o_ppmpricedescitemnode.o \
		 o_ppmofferrulecatalognode.o \
		 o_ppmofferruleexpress.o \
		 o_ppmofferruleoperator.o \
		 o_ppmofferrulespec.o \
		 o_ppmofferrulecatalog.o \
                 o_ppminterfaceaccepthis.o \
                 o_ppminterfaceaccept.o \
                 o_ppminterfacesendhis.o \
		 o_ppmflowinterfacerela.o \
                 o_ppminterfacesend.o \
		 o_ppmofferprodrelarole.o \
		 o_ppmofferprodrela.o \
		 o_ppmmktresource.o \
		 o_ppmprodofferresrela.o \
		 o_ppmprodcharvaluerestrict.o \
		 o_ppmcustgroup.o \
		 o_ppmprodoffercustgroup.o \
		 o_ppmprodofferchannel.o \
		 o_ppmcommonregion.o \
		 o_ppmprodofferregion.o \
		 o_ppmtimesegment.o \
		 o_ppmprodoffertime.o \
		 o_ppmchannel.o \
		 o_ppmprodofferassuredemand.o \
		 o_ppmprodofferattr.o \
		 o_ppmprodmktresrela.o \
		 o_ppmprodregion.o \
		 o_ppmaccnbrtype.o \
		 o_ppmprodaccnbrtype.o \
		 o_ppmpartner.o \
                 o_ppmpartnerattribute.o \
                 o_ppmpartycontactinfo.o \
                 o_ppmpartycontactrela.o \
                 o_ppmrole.o \
                 o_ppmrule.o \
                 o_ppmrulerelation.o \
		 o_ppmproductprovider.o \
		 o_ppmattrvaluespec.o \
		 o_ppmselectedprodattrvalue.o \
		 o_ppmselectedprodattr.o \
		 o_ppmmdserelaflow.o \
		 o_ppmmdsecount.o \
		 o_ppmzb.o \
		 o_ppmmdserestrict.o \
		 o_ppmapprela.o \
		 o_ppmloginfo.o \
                 o_ppmofferpriceplan.o \
		 o_pricingplan.o \
		 o_ppmproddefaultevent.o \
		 o_ppmflowassign.o \
		 o_ppmprodbalance.o \
		 o_ppmprodquantity.o \
		 o_ppmprodsalespromotion.o \
		 o_ppmsalespromotiondetail.o \
		 o_ppmappattachment.o \
		 o_ppmprodofferbill.o \
                 o_ppmpriceplanbill.o \
		 o_ppmstatetemplaterela.o\
		 o_ppmdepartment.o \
		 o_ppmghdeptrela.o \
		 o_ppmprocattr.o\
                 o_ppmdiscountexpress.o\
		 o_ppmdiscounttimelimit.o\
		 o_ppmeventpricingstrategy.o\
		 o_ppmeventtype.o\
		 o_ppmlifecycle.o\
		 o_ppmpricingcombine.o\
		 o_ppmpricingcombinerelation.o\
		 o_ppmpricingplan.o\
		 o_ppmpricingsection.o\
		 o_ppmsectionrelation.o\
		 o_ppmtariff.o\
		 o_ppmconstparam.o\
		 o_ppmexpress.o\
		 o_ppmexpresselement.o\
		 o_ppmexpresselementoperator.o\
		 o_ppmexpresselementvarparam.o\
		 o_ppmpricinginfo.o\
		 o_prodofferonetimepriceinfo.o\
		 o_ppmpriceinfo.o\
		 o_ppmpriceparam.o\
                 o_ppmprimarydata.o\
                 o_ppmpridatatype.o\
     o_ppmofferprodcompdetail.o\
     o_ppmvaextinfo.o

all: ppm

ppm: $(MYLIBS) 
	$(AR) -r -v ppm.a $?

clean:
	rm -f *.o
	rm -f *.a

cp :
	cp *.a $(CRM_BIN)/

install: 
	cp *.h* $(CRM_INCLUDE)/ppm/
	cp *.a  $(CRM_BIN)/

installhead:
	cp *.h* $(CRM_INCLUDE)/ppm/
